import request from '@/utils/request'

/**
 * 业务分账
 * @param params
 * @returns {AxiosPromise}
 */

export function getRefundList(params) {
  return request({
    url: '/cloudApi/marketing/refundRecord/getRefundList',
    method: 'get',
    params
  })
}

/**
 * 提现列表
 */
export function getWithdrawRecordList(params) {
  return request({
    url: '/cloudApi/marketing/withdraw/getWithdrawRecordList',
    method: 'get',
    params
  })
}

/**
 * 提现审核
 */
export function audit(data) {
  return request({
    url: '/cloudApi/marketing/withdraw/audit',
    method: 'post',
    data
  })
}

/**
 * 批量提现审核
 */
export function auditBatch(data) {
  return request({
    url: '/cloudApi/marketing/withdraw/auditBatch',
    method: 'post',
    data
  })
}

/**
 * 查看订单
 */

export function withdrawDetail(params) {
  return request({
    url: '/cloudApi/marketing/withdraw/getDetail',
    method: 'get',
    params
  })
}

/**
 * 应付账单  付款记录
 */


export function getRefundPaymentList(params) {
  return request({
    url: '/cloudApi/marketing/withdraw/getRefundPaymentList',
    method: 'get',
    params
  })
}

/**
 * 付款
 */

export function payment(data) {
  return request({
    url: '/cloudApi/marketing/withdraw/payment',
    method: 'post',
    data
  })
}








